package com.bzkj.basicinfo.service.warehouse;

import com.bzkj.basicinfo.domain.warehouse.PdaBillsList;
import com.bzkj.basicinfo.domain.warehouse.dto.YiLianYunMaResponse;

/**
 * 易联云码平台对接Service接口
 * 
 * @author lixinyu
 * @date 2025-01-20
 */
public interface IYiLianYunMaService
{
    /**
     * 获取易联云码平台Token
     * 
     * @return Token字符串
     * @throws Exception 获取Token失败时抛出异常
     */
    String getToken() throws Exception;

    /**
     * 上传单据到易联云码平台
     * 
     * @param pdaBillsList 单据信息
     * @return 上传结果
     * @throws Exception 上传失败时抛出异常
     */
    YiLianYunMaResponse uploadBills(PdaBillsList pdaBillsList) throws Exception;

    /**
     * 上传单据到易联云码平台（带Token）
     * 
     * @param pdaBillsList 单据信息
     * @param token 授权Token
     * @return 上传结果
     * @throws Exception 上传失败时抛出异常
     */
    YiLianYunMaResponse uploadBillsWithToken(PdaBillsList pdaBillsList, String token) throws Exception;
}
